﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_AnalyzeList.aspx.cs" Inherits="SaleSystem.Analysis.frm_AnalyzeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
    <div>
        <ext:PageManager runat="server" ID="pagemanager1" />
        <ext:SimpleForm runat="server" ID="simpleform1" BodyPadding="5px" EnableBackgroundColor="true" ShowHeader="false" >
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="Button1" Icon="ChartBar" Text="柱状图" OnClick="bnAnalyze_Click" ValidateForms="simpleform1"></ext:Button>
                        <ext:Button runat="server" ID="Button2" Icon="ChartBar" Text="饼图" OnClick="bnAnalyze_Click" ValidateForms="simpleform1"></ext:Button>
                        <ext:Button runat="server" ID="bnAnalyze" Icon="ChartBar" Text="折线图" OnClick="bnAnalyze_Click" ValidateForms="simpleform1"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:DropDownList runat="server" ID="ddl_Type" Label="分析类型"  Width="200px" DataTextField="Name" DataValueField="Id" Required="true" OnSelectedIndexChanged="ddl_Type_SelectedIndexChanged">
                </ext:DropDownList>
                <ext:DatePicker runat="server" ID="dp_StartTime" Required="true" ShowRedStar="true" Label="开始时间" DateFormatString="yyyy-MM-dd" Width="200px"></ext:DatePicker>
                <ext:DatePicker runat="server" ID="dp_EndTime" Required="true" ShowRedStar="true" Label="结束时间" DateFormatString="yyyy-MM-dd" Width="200px" CompareControl="dp_StartTime" CompareOperator="GreaterThanEqual" CompareType="String" CompareMessage="结束日期必须大于等于开始日期！"></ext:DatePicker>
            </Items>
        </ext:SimpleForm>
        <ext:Grid runat="server" ID="gv_List"  AutoHeight="true" AutoWidth="true" IsDatabasePaging="false" AllowPaging="true" ShowHeader="false" OnPageIndexChange="gv_List_PageIndexChange" >
            <Columns>
                <ext:BoundField ColumnID="TimeSpin" DataField="TimeSpin" HeaderText="统计项" />
                <ext:BoundField ColumnID="Sales" DataField="Sales" HeaderText="销售额" />
                <ext:BoundField ColumnID="ProductCost" DataField="ProductCost" HeaderText="产品成本" />
                <ext:BoundField ColumnID="MainProfit" DataField="MainProfit" HeaderText="毛利润" />
                <ext:BoundField ColumnID="Profit" DataField="Profit" HeaderText="纯利润" />
            </Columns>
        </ext:Grid>
    </div>
    </form>
</body>
</html>
